/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import '../../../assets/styles/base/colors';
@import '../../../assets/styles/base/variables';

add-file-modal {
    .import {
        width: 700px;
        height: 100%;

        display: flex;
        flex-direction: column;

        .file-types-list {
            max-height: 100%;
            padding-right: 0px;
            margin-top: 16px;

            .selection-disabled {
                opacity: 0.5;
            }

            .file-types-list-item {
                background-color: $third-highlight;
                padding: $space-medium;
                width: 100%;
                &:nth-child(even) {
                    background-color: $white;
                }

                .description {
                    font-style: italic;
                    padding-left: 2em;
                }

                label.radio-label {
                    font-weight: bold;

                    &::before {
                        top: 8px;
                    }

                    &::after {
                        top: 13px;
                    }
                }
            }
        }

        section {
            font-size: 0.9em;

            file-importer {
                margin-top: $space-medium;
            }

            span {
                color: $secondary-text;
            }

            .chosen-file {
                flex: 1;
                display: flex;
                flex-direction: column;
                background-color: $third-highlight;
                padding: $space-medium;

                .title {
                    font-weight: bold;
                }

                .file-info {
                    display: flex;
                    justify-content: space-between;
                    border-bottom: 1px solid $fifth-highlight;
                    padding-bottom: $space-medium;
                    align-items: center;

                    svg {
                        fill: $first-highlight;
                        width: 76px;
                        height: 76px;
                        margin-right: $space-medium;
                    }

                    .file-title {
                        display: flex;
                        flex-direction: column;
                        justify-content: center;

                        span {
                            color: $primary-text;
                            font-style: italic;
                        }
                    }
                }

                .file-content {
                    margin-top: $space-medium;
                    flex: 1;
                    display: flex;
                    justify-content: space-between;

                    .network-part {
                        margin-bottom: $space-smedium;
                    }
                }
            }

            .github-spinner {
                height: 200px;
                width: 465px;
                display: flex;
                align-items: center;
                justify-content: center;

                .circle-path {
                    stroke: $first-highlight;
                }
            }

            form {
                max-height: 200px;
                overflow-y: auto;
                margin-top: $space-medium;
            }
        }
    }
}
